System call open not working